package com.yw.swagger.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

@ApiModel(description = "权限码")
public class AppAuthor {

  @ApiModelProperty(hidden = true)
  private long id;
  @ApiModelProperty(value = "使用者姓名", example = "sa")
  private String authorName;
  @ApiModelProperty(value = "权限码")
  private String authorNum;
  @ApiModelProperty(value = "是否被使用",example = "0")
  private long authorFlg;
  @ApiModelProperty(value = "使用时间（yyyy-MM-dd hh:mm:ss）")
  private Date authorNumUseDate;
  @ApiModelProperty(value = "生成时间（yyyy-MM-dd hh:mm:ss）")
  private Date authorNumAddDate;
  @ApiModelProperty(value = "生成人账号",example = "sa")
  private String authorNumAddAccount;
  @ApiModelProperty(value = "生成人姓名",example = "超级管理员")
  private String authorNumAddName;


  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public String getAuthorName() {
    return authorName;
  }

  public void setAuthorName(String authorName) {
    this.authorName = authorName;
  }


  public String getAuthorNum() {
    return authorNum;
  }

  public void setAuthorNum(String authorNum) {
    this.authorNum = authorNum;
  }


  public long getAuthorFlg() {
    return authorFlg;
  }

  public void setAuthorFlg(long authorFlg) {
    this.authorFlg = authorFlg;
  }


  public Date getAuthorNumUseDate() {
    return authorNumUseDate;
  }

  public void setAuthorNumUseDate(Date authorNumUseDate) {
    this.authorNumUseDate = authorNumUseDate;
  }


  public Date getAuthorNumAddDate() {
    return authorNumAddDate;
  }

  public void setAuthorNumAddDate(Date authorNumAddDate) {
    this.authorNumAddDate = authorNumAddDate;
  }


  public String getAuthorNumAddAccount() {
    return authorNumAddAccount;
  }

  public void setAuthorNumAddAccount(String authorNumAddAccount) {
    this.authorNumAddAccount = authorNumAddAccount;
  }


  public String getAuthorNumAddName() {
    return authorNumAddName;
  }

  public void setAuthorNumAddName(String authorNumAddName) {
    this.authorNumAddName = authorNumAddName;
  }

  @Override
  public String toString() {
    return "AppAuthor{" +
            "id=" + id +
            ", authorName='" + authorName + '\'' +
            ", authorNum='" + authorNum + '\'' +
            ", authorFlg=" + authorFlg +
            ", authorNumUseDate=" + authorNumUseDate +
            ", authorNumAddDate=" + authorNumAddDate +
            ", authorNumAddAccount='" + authorNumAddAccount + '\'' +
            ", authorNumAddName='" + authorNumAddName + '\'' +
            '}';
  }
}
